home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / ophel001.swf / scripts / DefineButton2_986 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2010-08-12  |  986 b   |  41 lines

  1. on(release){
  2.    set("/Variables:VaVers01","ScCroix");
  3.    set("/Variables:VaVers02","AbeiProche1");
  4.    set("/Variables:Colonne",5);
  5.    if(eval("/Variables:PositionPerso") eq "Auto")
  6.    {
  7.       set("/Variables:PositionPerso","Fontaine");
  8.       tellTarget(Gregor)
  9.       {
  10.          gotoAndStop("MarcheGauche");
  11.          play();
  12.       }
  13.       if(eval("/Variables:PersoPres") == 2)
  14.       {
  15.          set("/Variables:VaVers02","AbeiProche2");
  16.          tellTarget(Prescott)
  17.          {
  18.             gotoAndStop("MarcheGauche");
  19.             play();
  20.          }
  21.       }
  22.    }
  23.    else if(eval("/Variables:PositionPerso") eq "Fontaine")
  24.    {
  25.       tellTarget(Gregor)
  26.       {
  27.          gotoAndStop("180Gauche");
  28.          play();
  29.       }
  30.       if(eval("/Variables:PersoPres") == 2)
  31.       {
  32.          set("/Variables:VaVers02","AbeiProche2");
  33.          tellTarget(Prescott)
  34.          {
  35.             gotoAndStop("180Gauche");
  36.             play();
  37.          }
  38.       }
  39.    }
  40. }
  41.